package com.ls.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.tedu.crm.entity.Level;
import cn.tedu.crm.service.ILevelService;
import cn.tedu.crm.util.JsonResult;

@Controller
@RequestMapping("/level")
public class LevelController {
	@Resource(name = "levelService")
	ILevelService service;
	

	@RequestMapping("/option.do")
	@ResponseBody
	public JsonResult<List<Level>> findLevel() {
		JsonResult<List<Level>> result = service.findLevel();
		return result;
	}
	
}
